/**
 * 
 */
package com.netscenery.yang.model;

/**
 * @author llly
 *
 */
public enum Status {
	 CURRENT("current"),
	 DEPRECATED("deprecated"),
	 OBSOLETE("obsolete"),
	 DEFAULT("default")
	;
	private String status;
	private Status(String status){
		this.status = status;
	}
	public String getStatus(){
		return this.status;
	}
	
	public static Status getStatus(String status){
		if (null == status){
			return null;
		}
		
		if ("current".equals(status)){
			return CURRENT;
		}
		else if ("deprecated".equals(status)){
			return DEPRECATED;
		}
		else if ("obsolete".equals(status)){
			return OBSOLETE;
		}
		else{
			return null;
		}
	}

}
